<!doctype html>
<html>
<head>
    <title>{$INI['system']['sitename']} {$city['name']}</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="/css/style.css">
    <link rel="stylesheet" href="/css/font-awesome.min-4.3.0.css">
	<script src="/js/jquery.min-2.1.3.js" type="text/javascript"></script>
</head>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<body>
<script>

  wx.config({
    debug: false,
    appId: '{$signPackage["appId"]}',
    timestamp: {$signPackage["timestamp"]},
    nonceStr: '{$signPackage["nonceStr"]}',
    signature: '{$signPackage["signature"]}',
    jsApiList: [
      'onMenuShareTimeline','onMenuShareAppMessage'
    ]
  });

  wx.ready(function () {
  <!--{if !empty($INI['system']['secsite']) }-->
		wx.onMenuShareTimeline({
			title: '{$INI[system][sitename]}给您发红包啦，买水果直接抵现金哦～～', // 分享标题
			link: '{$INI[system][wwwprefix]}{$INI[system][secsite]}sharebonus.php?id={$id}&isget=1', // 分享链接
			imgUrl: '{$INI[system][wwwprefix]}{$INI[system][secsite]}images/bonusshare.jpg', // 分享图标
			success: function () { 
				// 用户确认分享后执行的回调函数
			},
			cancel: function () { 
				// 用户取消分享后执行的回调函数
			}
		});
		
		wx.onMenuShareAppMessage({
			title: '{$INI[system][sitename]}给您发红包啦，买水果直接抵现金哦～～', // 分享标题
			desc: '手快有，手慢无，抢红包购买更实惠！', // 分享描述
			link: '{$INI[system][wwwprefix]}{$INI[system][secsite]}sharebonus.php?id={$id}&isget=1', // 分享链接
			imgUrl: '{$INI[system][wwwprefix]}{$INI[system][secsite]}images/bonusshare.jpg', // 分享图标
			type: '', // 分享类型,music、video或link，不填默认为link
			dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
			success: function () { 
				// 用户确认分享后执行的回调函数
			},
			cancel: function () { 
				// 用户取消分享后执行的回调函数
			}
		});
		
	<!--{else}-->	
	wx.onMenuShareTimeline({
			title: '{$INI[system][sitename]}给您发红包啦，买水果直接抵现金哦～～', // 分享标题
			link: '{$INI[system][wwwprefix]}sharebonus.php?id={$id}&isget=1', // 分享链接
			imgUrl: '{$INI[system][wwwprefix]}images/bonusshare.jpg', // 分享图标
			success: function () { 
				// 用户确认分享后执行的回调函数
			},
			cancel: function () { 
				// 用户取消分享后执行的回调函数
			}
		});
		
		wx.onMenuShareAppMessage({
			title: '{$INI[system][sitename]}给您发红包啦，买水果直接抵现金哦～～', // 分享标题
			desc: '手快有，手慢无，抢红包购买更实惠！', // 分享描述
			link: '{$INI[system][wwwprefix]}sharebonus.php?id={$id}&isget=1', // 分享链接
			imgUrl: '{$INI[system][wwwprefix]}images/bonusshare.jpg', // 分享图标
			type: '', // 分享类型,music、video或link，不填默认为link
			dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
			success: function () { 
				// 用户确认分享后执行的回调函数
			},
			cancel: function () { 
				// 用户取消分享后执行的回调函数
			}
		});
	<!--{/if}-->
  });
</script>
    <div class="container" style="padding: 0;">
        <div class="coupon_bg">
			<div class="coupon_caller_content" style="top: 100px;">

				
				<div class="coupon_content">
				   <div class="coupon_none_wrapper1"></div>
				</div>
				
				<!--ms-if-->
				<span class="title"></span>
				<span class="title"></span>
				<!--ms-if-->
				
				<div class="coupon_share">
					<!--ms-if-->
					<div>
						<div>
							
							<div class="coupon_buttons mari">
								<!--ms-if-->
								<div class="use_btn button" id="insc">
									<span>领取</span>
								</div>
							</div>

						</div>

					</div>
				</div>

				
				<!-- <div class="down_img1"></div> -->
			</div>

		</div>
    </div>
</body>
<style>
.container{  background-color: #fff;}
.coupon_bg {
  width: 100%;
  height: 100%;
  background-size: cover;
}

.coupon_caller_content {
  position: relative;
  width: 100%;
  text-align: center;
}
.coupon_caller_content .title {
  height: 26px;
  line-height: 26px;
  font-size: 14px;
  color: #6b6b6b;
  display: block;
}
.coupon_content {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
}
.coupon_content .coupon_none_wrapper1 {
  position: relative;
  display: block;
  width: 150px;
  height: 120px!important;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px;
  background: url({$INI[system][wwwprefix]}{$INI[system][secsite]}images/bonus_get.jpg) no-repeat;
  background-size: contain;
}
.coupon_caller_content .coupon_share {
  position: relative;
  display: block;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 300px;
}
.coupon_caller_content .line_couponss {
  display: inline-block;
  width: 30%;
  margin: 4px 10px;
  background-color: #aaa;
  height: 1px;
}

.coupon_caller_content .line_couponss {
  display: inline-block;
  width: 30%;
  margin: 4px 10px;
  background-color: #aaa;
  height: 1px;
}
.coupon_caller_content .order_item1 {
  margin-top: 10px;
  background-color: #fff;
  width: 94%;
  height: 88px;
  margin-left: 3%;
  opacity: .8;
}
.order_goods {
  position: relative;
  padding: 15px 0;
  padding-left: 75px;
  font-size: 11px;
  border-bottom: 1px solid #D7D7D7;
  min-height: 60px;
}
.order_goods_img {
  position: absolute;
  top: 15px;
  left: 0;
}
.coupon_caller_content .bor_coupon {
  width: 88px;
  height: 88px;
  top: 0!important;
}
.coupon_caller_content .inner_img {
  width: 88px;
  height: 88px;
  border: 0;
  display:block;
}
.order_goods_info {
  position: relative;
}
.order_goods:last-child {
  border-bottom: 0 none;
}
.order_goods_name {
  max-height: 30px;
  color: #000;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 5px;
  line-height: 15px;
}
.coupon_caller_content .goods_coupon {
  text-align: left;
  margin-left: 25px;
  font-size: 12px;
  white-space: normal;
}
.order_goods_attr {
  color: #666;
}
.order_goods_attr_item {
  line-height: 22px;
  overflow:Hidden;
}
.coupon_caller_content .order_goods_attr_item {
  height: auto;
}
.coupon_caller_content .num_coupon1 {
  color: red;
  font-size: 14px;
  display: inline-block;
  margin-top: 10px;
  margin-left: 25px;
  text-align: left;
  font-size: 16px;
  float: left;
}
.coupon_caller_content .coupon_share .coupon_buttons .button {
  display: block;
  width: 200px;
  height: 40px;
  margin: 0 auto;
  line-height: 40px;
  border-radius: 5px;
}
.coupon_caller_content .coupon_share .coupon_buttons .use_btn {
  margin-top: 20px;
  color: #fff;
  font-weight:700;
  background-color:#ff8502;
  border: 1px solid #fe6700;
}
.coupon_caller_content .coupon_share .coupon_buttons .button span {
  font-size: 20px;
}

.down_img {
  margin-top: 20px;
  min-height: 67px;
  width: 100%;
  background: url({$INI[system][wwwprefix]}{$INI[system][secsite]}images/red_9fea707.jpg) no-repeat;
  background-size: 100%;
  position: absolute;
  
  bottom: 0px;
}

</style>
<div id="shareit">
	<img class="arrow" src="{$INI[system][wwwprefix]}{$INI[system][secsite]}/images/share-it.png">
</div>
<script type="text/javascript">
	
	$(function(){
		//setTimeout("hidetip()",3000);
		$('#insc').click(function(){
		<!--{if !empty($INI['system']['secsite']) }-->
		
		var del_url = '{$INI[system][wwwprefix]}{$INI[system][secsite]}ajax/order.php?action=getbonusid&id={$id}';
		<!--{else}-->
			var del_url = '{$INI[system][wwwprefix]}ajax/order.php?action=getbonusid&id={$id}';
			<!--{/if}-->
			
			$.ajax(
				{ 
					url: del_url, 
					dataType: 'json', 
					success: function(result){
						if(result.ret>0){
							//get_exp
							//$('#orderdel_'+id).fadeOut();
							//$('.nextpage').hide();
							alert(result.msg);
							<!--{if !empty($INI['system']['secsite']) }-->
							location.href = '{$INI[system][wwwprefix]}{$INI[system][secsite]}index.php';		
							<!--{else}-->
							location.href = '{$INI[system][wwwprefix]}index.php';		
							<!--{/if}-->
												
							return false;
						} else {
							alert(result.msg);
							return false;
						}
						
					}
				}) 
		})
		
		
	})
	
</script>

<!--{include footer}-->
</html>